package entity;

public class ClassA {
    /**
     * 名称
     */
    private String name;
    /**
     * 地址
     */
    private String address;
    /**
     * 年份
     */
    private Integer year;

    /**
     * 数量
     */
    private Integer number;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getYear() {
        return year;
    }

    public void setYear(Integer year) {
        this.year = year;
    }

    public ClassA() {
    }

    public ClassA(String name, String address, Integer year) {
        this.name = name;
        this.address = address;
        this.year = year;
    }

    @Override
    public String toString() {
        return "ClassA{" +
                "name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", year=" + year +
                '}';
    }
}
